import axios from './axios'

/**
 * 登录
 * @param {name} data 
 * @returns 
 */
export const list = (data => {
    console.log(data);
  return axios.get('/api/v1/knowledge-base/page?name='+data.name)
})

export const add = (data => {
    return axios.post('/api/v1/knowledge-base', data)
  })
  export const del = (data => {
    return axios.delete('/api/v1/knowledge-base/'+data.id)
  })